package com.caifu.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.caifu.bean.Result;
import com.caifu.pojo.CUser;
import com.caifu.pojo.SysUser;
import com.caifu.vo.UserVo;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface UserService extends IService<CUser> {

    /**
     * @param orgId
     * @param deptId
     * @return
     */
    List<Map<String, Object>> listUserInfo(Integer orgId, Integer deptId) throws Exception;

    /**
     * @param userNo
     * @return
     * @throws Exception
     */
    CUser getUserInfo(String userNo) throws Exception;


    /**
     * 获取登录账号中的用户
     *
     * @param user
     * @return
     */
    PageInfo<UserVo> getUserList(SysUser user, UserVo vo);

    /**
     * 添加user
     *
     * @param cUser
     * @param user
     * @return
     */
    Result addOrUpdate(CUser cUser, SysUser user) throws Exception;

    /**
     * 获取user信息
     * @param user
     * @param userNo
     * @return
     */
    CUser getUserById(SysUser user, String userNo);

    /**
     * 根据id删除user
     *
     * @param userNo
     * @return
     */
    Result deleteById(String userNo);
}
